import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  channelEdit: false // 是否打开频道管理
}
const mutations = {
  SET_CHANNELEDIT (state, channelEdit) {
    state.channelEdit = channelEdit
  }
}
const actions = {
  // 打开/关闭 频道管理
  setChannelEdit (context, channelEdit) {
    context.commit('SET_CHANNELEDIT', channelEdit)
  }
}

export default new Vuex.Store({
  state,
  mutations,
  actions
})
